import { lazy } from 'react'
const routes = [
    {
        path: '/Layout',
        component: lazy(() => import('../layout')),
        children: [
            {
                path: '/Layout/Home',
                component: lazy(() => import('../pages/Home')),
                meta: {
                    title: '首页',
                    icon: 'iconfont icon-shouye'
                },
            }, {
                path: '/Layout/Hotpoint',
                component: lazy(() => import('../pages/Hotpoint')),
                meta: {
                    title: '预点',
                    icon: 'iconfont icon-guangbiao'
                }
            }, {
                path: '/Layout/Takeout',
                component: lazy(() => import('../pages/Takeout')),
                meta: {
                    title: '外卖',
                    icon: 'iconfont icon-diandongche'
                }
            }, {
                path: '/Layout/Orders',
                component: lazy(() => import('../pages/Orders')),
                meta: {
                    title: '订单',
                    icon: 'iconfont icon-dingdan'
                }
            }, {
                path: '/Layout/Mine',
                component: lazy(() => import('../pages/Mine')),
                meta: {
                    title: '我的',
                    icon: 'iconfont icon-wode'
                }
            }
        ]
    },
    {
        path: '/Food',
        component: lazy(() => import('../pages/Food')),
    }, {
        path: "/newaddress",
        meta: { title: "新建地址" },
        component: lazy(() => import('../pages/NewAddress'))
    }, {
        path: "/user",
        meta: { title: "新建地址" },
        component: lazy(() => import('../pages/Home/user'))
    }, {
        path: "/Shop",
        component: lazy(() => import('../pages/Shop'))
    }, {
        path: "/Detail",
        component: lazy(() => import('../pages/Detail'))
    }, {
        path: "/Payment",
        component: lazy(() => import('../pages/Home/Pay')),
    }, {
        path: "/City",
        component: lazy(() => import('../pages/City'))
    }, {
        path: '/LoginVerifycode',
        component: lazy(() => import('../pages/Login/LoginVerifycode'))
    }, {
        path: '/Verifycode',
        component: lazy(() => import('../pages/Login/Verifycode'))
    }, {
        path: "/Explain",
        component: lazy(() => import('../pages/VipExplain')),
    }, {
        path: '/Loginpass',
        component: lazy(() => import('../pages/Login/Loginpass/index'))
    }, {
        path: '/Details',
        component: lazy(() => import('../pages/Details')),
    }, {
        path: "/Car",
        component: lazy(() => import('../pages/Car')),
    }, {
        path: "/updAddress",
        component: lazy(() => import('../pages/Takeout/components/updAddress'))

    }, {
        path: "/userinfo",
        component: lazy(() => import('../pages/Home/userInfo/index')),
    }, {
        path: '/Findpass',
        component: lazy(() => import('../pages/Login/Findpass/index.tsx'))
    }
    , {
        path: '/Editpass',
        component: lazy(() => import('../pages/Login/Editpass/index.jsx'))
    }, {
        path: '/Exchange',
        component: lazy(() => import('../pages/Mine/Exchange/index.jsx'))
    }, {
        path: "/Sure",
        component: lazy(() => import('../pages/Food/Sure'))
    }, {
        path: '/Register',
        component: lazy(() => import('../pages/Login/Register/index.jsx'))
    }, {
        path: '/RegisterPhone',
        component: lazy(() => import('../pages/Login/Register/RegisterPhone.tsx'))
    }
    , {
        path: '/Camera',
        component: lazy(() => import('../pages/Home/homey/camera/index.jsx'))
    }, {
        path: "/Member",
        component: lazy(() => import('../pages/Member'))
        
    },{
        path: '/Sure_order',
        component: lazy(() => import("../pages/Food/Sure/Sure_order"))
    }
]
export default routes